using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._IntelligenceTools
{
    /// <summary>
    /// <para>Point Clustering</para>
    /// <para>Find clusters of point features.</para>
    /// <para>查找点要素聚类。</para>
    /// </summary>    
    [DisplayName("Point Clustering")]
    public class PointClustering : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public PointClustering()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_input_point_features">
        /// <para>Input Points</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public PointClustering(object _input_point_features)
        {
            this._input_point_features = _input_point_features;
        }
        public override string ToolboxName => "Intelligence Tools";

        public override string ToolName => "Point Clustering";

        public override string CallName => "intelligence.PointClustering";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_input_point_features, _input_search_distance, _minimum_features_cluster, _output_id_list];

        /// <summary>
        /// <para>Input Points</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Points")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _input_point_features { get; set; }


        /// <summary>
        /// <para>Distance</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Distance")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _input_search_distance { get; set; } = "100 Meters";


        /// <summary>
        /// <para>Minimum Features per Cluster</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Minimum Features per Cluster")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public long _minimum_features_cluster { get; set; } = 5;


        /// <summary>
        /// <para>Output OIDs</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output OIDs")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _output_id_list { get; set; }


        public PointClustering SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}